// const koa=require("koa")

const {APP_PORT}=require("./config/config.default")

// const userRouter=require("./router/user.route")

// const app=new koa()
const app=require("./app")

// app.use((ctx,next)=>{
//     ctx.body="hello world123456"
// })
// app.use(userRouter.routes())
// app.listen(3000,()=>{})  将端口改成了 APP_PORT
app.listen(APP_PORT,()=>{
    console.log(`server is running on http://localhost:${APP_PORT}`)
})